<template>
  <div class="cash-order">
    <div class="order-card">
      <!-- 提现总金额 -->
      <div class="hd">
        <div class="price">
          ¥
          <span>199</span>
        </div>
        <p>可提现金额</p>
      </div>
      <!-- 提现金额 -->
      <div class="input-wrap border-b-1px">
        <div class="label">提现金额</div>
        <van-cell-group :border="false">
          <van-field v-model="value" placeholder="请输入用户名" label="¥" />
        </van-cell-group>
      </div>
      <!-- 提现方式 -->
      <div class="radio-type">
        <div class="label m-t-18">提现方式</div>
        <van-radio-group v-model="radio" class="radio-group">
          <van-radio name="1" checked-color="#FF4747" icon-size="15px" label-position="left">提现到微信</van-radio>
          <van-radio name="2" checked-color="#FF4747" icon-size="15px" label-position="left">提现到支付宝</van-radio>
        </van-radio-group>
      </div>
    </div>
    <!-- 提现按钮 -->
    <button class="btn" type="button">提现</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
      radio: "1"
    };
  }
};
</script>

<style lang="scss" scoped>
.cash-order {
  padding: 15px;
  // 提现订单
  .order-card {
    height: 220px;
    padding: 0 13px;
    box-shadow: 0px 1px 12px 0px rgba(205, 203, 203, 0.34);
    border-radius: 5px;
    .label {
      font-size: 15px;
      font-weight: 800;
      margin: 15px 0 11px;
    }
    .hd {
      text-align: center;
      overflow: hidden;
      .price {
        margin-top: 30px;
        font-size: 24px;
        font-weight: bold;
        color: #2d2d2d;
      }
      p {
        margin-top: 10px;
        font-size: 12px;
        color: #222;
      }
    }
    // 提现金额
    .input-wrap {
      overflow: hidden;
      @include border-b-1px(#e4e4e4);
      .van-cell {
        padding: 0;
        /deep/.van-field__label {
          width: 13px;
          font-size: 15px;
          span {
            font-weight: bold;
          }
        }
      }
    }
    // 提现方式
    .radio-type {
      overflow: hidden;
      .radio-group {
        margin-bottom: 17px;
        .van-radio:not(:last-child) {
          margin-right: 33px;
        }
        display: flex;
        font-size: 12px;
        /deep/.van-radio__label {
          color: #333;
        }
        /deep/.van-radio__label--left {
          margin-right: 16px;
        }
      }
    }
  }
  // 提现按钮
  .btn {
    margin-top: 44px;
    width: 343px;
    height: 45px;
    border: none;
    border-radius: 23px;
    background: linear-gradient(
      267deg,
      rgba(255, 69, 69, 1),
      rgba(252, 127, 118, 1)
    );
    color: #fff;
    box-shadow: 0px 1px 8px 0px rgba(255, 164, 164, 1);
  }
}
</style>